<?php
namespace app\validate;

use share\validate\SceneValidate;

class ProjectInfoValidate extends SceneValidate{

    protected $rule = [
        'projectId' =>  'require',
        'vendor' => 'require|length:1,60',
        'projectName' => 'require|length:1,600',
    ];  
    
    protected $sceneRules = [   
        'edit' => [       
            'projectId' =>  'require',
            'vendor' => 'length:1,60',
            'projectName' => 'length:1,600',
        ]
    ];

    protected $scene = [
        'add' => ['projectId','vendor','projectName'],  
        'edit' => ['projectId','vendor','projectName'],      
        'del' => ['projectId'],
    ];
}